using UnityEngine;

public class ScrollViewScript : MonoBehaviour
{
	public RectTransform rectContent;

	public float min;

	public float max;

	private void Update()
	{
		rectContent.localPosition = new Vector3(rectContent.localPosition.x, Mathf.Clamp(rectContent.localPosition.y, min, max), rectContent.localPosition.z);
	}
}
